<!DOCTYPE html>
{% load static %}
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>{{ var.module_name }}</title>
	<link rel="stylesheet" type="text/css" href="{% static 'css/normalize.css' %}" />
    <link rel="stylesheet" type="text/css" href="{% static 'css/bootstrap.min.css'%}">
    <link rel="stylesheet" type="text/css" href="{% static 'css/demo.css'%}">
    <link rel="stylesheet" type="text/css" href="{% static 'css/jexcel.css'%}" />
    <script src="{% static 'js/jquery-3.4.1.min.js' %}"></script>
    <script type="text/javascript" src="{% static 'js/popper.min.js'%}"></script>
    <script type="text/javascript" src="{% static 'js/bootstrap.js'%}"></script>
    </head>
<body>
	<div class="jq22-container">
    <header>
        <nav class="headertitle">
        <h1 class="navbar-header">消防系统计算平台 </h1>
        <div class="container-fluid">
            <div class="nav-item dropdown">
                <a data-toggle="dropdown" data-target="#" role="button">
                    <div class="username">admin <span class="caret"></span></div>
                </a>
                <div class="dropdown-menu" role="menu">
                    <a class="dropdown-item" href="#" role="menuitem">退出</a>
                </div>
            </div>
        </div>
        </nav>
    </header>
		<div class="jq22-header">
			<div class="jq22-demo center">
                <a href="{% url 'project' %}" class="current">项目列表</a>
                <a href="{% url 'project_add' %}">概况</a>
                {% if module_list %}
                    {% for var in module_list %}
                    <a href="#">{{ var.module_name }}</a>
                    {% endfor %}
                {% else %}

                {% endif %}
			</div>
		</div>
        <div class="content">
        <div class="jq22-demo center">
        <div class="project-btn">
            <button class="btn-primary"onclick="javascrtpt:window.location.href='{% url 'project_add' %}'">创建项目</button>
        </div>
            {% if project_list %}
                <div>
                {% for var in project_list %}
                    <div class="project"><a style="color: #000;" href="{% url 'project_add' %}?pk={{ var.id }}">{{ var.project_name }}</a>
                        <div class="project-dtl">{{ var.project_text | slice:"80" }} </div>
                        <div class="project-dtl">{{ var.user.username }}  {{ var.pub_date }}</div>
                {% endfor %}
                </div>
            {% else %}

            {% endif %}
            <div><a style="color: #000;" href="{% url 'project_add' %}?pk=">创建项目</a> </div>

        </div>
	</div>
    </div>

</div>
</body>
</html>